package com.songshuai.webapi.permission.dao;

import com.songshuai.webapi.permission.model.YxUserNavigationFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YxUserNavigationFunctionMapper {
    //删除功能用户菜单关联
    int deleteFuncUserNavRelation(@Param("functionId")Integer functionId);

    //删除菜单用户功能关联
    int deleteNavUserFuncRelation(@Param("navigationId")Integer navigationId);

    //删除用户菜单功能关联
    int deleteUserNavFuncRelation(@Param("userId")Integer userId);

    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    List<YxUserNavigationFunction> queryByUserId(Integer userId);

}